<?php

session_start();

require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";


$main = new Skin("dipartimento");


if ($_SERVER['QUERY_STRING'] != "") {
	$content = new Content($pubEntity, $pubAuthors, $usersEntity);
} else {
	$content = new Content($pubEntity);
}


$content->setOrderFields("year DESC");

#$main->setContent("body", $content->get());

if (!isset($_REQUEST['all'])) {
	$main->setContent("body", $content->getPager(20));
} else {
	$main->setContent("body", $content->get());
}


$main->close();  

?>